package com.smz.dao;



import com.baomidou.mybatisplus.core.metadata.IPage;
import com.smz.entity.TEnterprise;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TEnterpriseDAO {
    int selectTEnterpriseCount();

    List<TEnterprise> selectTEnterpriseByPage(@Param("start") Integer start, @Param("length") Integer length);

    List<TEnterprise>  selectAllTEnterprises();

    //id查单个
    TEnterprise selectTEnterpriseById(@Param("id") Integer id);

    IPage<TEnterprise> selectTEnterpriseByContactsEnterpriseName(IPage<TEnterprise> tStaffPage, @Param("contacts") String contacts, @Param("enterpriseName") String enterpriseName);

    void  updateTEnterpriseById(@Param("id") Integer id, @Param("accountStatus") String accountStatus);
}
